//
//  UTUITests.swift
//  iPhoneUTests
//
//  Created by Toj on 3/28/23.
//

import XCTest

class UTUITests: XCTestCase {

    override func setUpWithError() throws {
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }

    override func tearDownWithError() throws {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
    }

    func testExample() throws {
        print("-->UTests: start \n")
        testBarHeight()
        print("-->UTests: end \n")
    }

    func testPerformanceExample() throws {
        // This is an example of a performance test case.
        self.measure {
            // Put the code you want to measure the time of here.
        }
    }
}

extension UTUITests {
    
    func testBarHeight() {
        let application = UIApplication.shared
        
        print("-->UTests: \n")
        print("-->UTests: other:")
        print("-->UTests: app: safeAreaInsets: \(application.app_safeAreaInsets)")
        print("-->UTests:  dv: safeAreaLeft  : \(CGFloat.dv_safeAreaLeft)")
        print("-->UTests:  dv: safeAreaRight : \(CGFloat.dv_safeAreaRight)")
        print("-->UTests:  dv: safeAreaTop   : \(CGFloat.dv_safeAreaTop)")
        print("-->UTests:  dv: safeAreaBottom: \(CGFloat.dv_safeAreaBottom)")
        
        print("-->UTests: statusBar:")
        print("-->UTests: statusBar: app_height: \(application.statusBarFrame.height)")
        print("-->UTests: statusBar: sts_height: \(CGFloat.sts_barHeight)")
        
        print("-->UTests: navBar:")
        
        print("-->UTests: navBar: heightd: \(CGFloat.nav_barHeight)")
        print("-->UTests: navBar: height2: \(CGFloat.nav_barHeight2)")
        print("-->UTests: navBar: nav_safeHeight: \(CGFloat.nav_barFullHeight)")
        
        print("-->UTests: navBar: leftMargin    : \(CGFloat.dv_safeAreaLeft)")
        
        print("-->UTests: tabBar:")
        print("-->UTests: tabBar: safeAreaHeight: \(CGFloat.tab_safeAreaHeight)")
        print("-->UTests: tabBar: fullHeight : \(CGFloat.tab_barFullHeight)")
        print("-->UTests: \n")
    }
    
    private func test() {
      
    }
}
